/**
 * 游戏结果
 */
class ResultValue{
    private resultType:ResultType;
    private sound:egret.Sound;
    private cards:Card[];
    private playerId:string;

    /**
     * 构造游戏结构
     * @param resultType 结果类型
     * @param playerId 玩家编号
     * @param cards 牌型 
     */
    public constructor(resultType:ResultType,playerId:string,cards:Card[]){
        this.sound = RES.getRes(ResultType[resultType]+"_mp3");
        this.cards = cards;
        this.playerId = playerId;
    }

    /**
     * 播放结果对应的音乐
     */
    public playSound(){
        if(this.sound != null){
            this.sound.play();
        }
    }

}